package com.hmall.item.HandlerInterceptor;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.HandlerInterceptor;


    @Controller
    @RequestMapping("/index")
    public class LoginControl {
        @RequestMapping(value = "/login")
        public String login() {
            System.out.println("LoginControl->login");
            return "login";
        }

        @RequestMapping(value = "/test")
        @ResponseBody
        public String test() {
            System.out.println("LoginControl->test");
            return "test";
        }
    }